<?php
    include_once("./template/DataProvider.php");
    if(isset($_REQUEST['id']))
    {
        $MaSP = $_REQUEST['id'];
        $q = "UPDATE `sanpham` SET `BiXoa`='1' WHERE MaSP = '".$MaSP."' ";
        DataProvider::executeQuery($q);
        DataProvider::ChangeURL("trangchu.php?act=9");
    }
    DataProvider::ChangeURL("trangchu.php?act=1");
?>